<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" href="__PUBLIC__css/public.css">

    <style type="text/css" media="screen">
    body {
        padding-left: 50px;
        padding-right: 50px;
    }
    </style>
    <script type="text/javascript" charset="utf-8">
    // function showDlg(){
    //      var Overlay = BUI.Overlay
    //       var dialog = new Overlay.Dialog({
    //         title:'模态窗口',
    //         width:500,
    //         height:250,
    //         bodyContent:'<p>这是一个模态窗口,默认带有确认取消按钮</p>',
    //         success:function () {
    //           alert('确认');
    //           this.close();
    //         }
    //       });
    //     dialog.show();
    // }

   
    function trClick(today, channel, tag) {
        if (tag == 1) {
            showModalDialog("{:U('cuccmember/info_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        }else if (tag == 2) {
            showModalDialog("{:U('cuccmember/successinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel , "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        }

    }
    </script>
</head>

<body>
    
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>日期</th>
                <th>产品</th>
                <th>渠道号</th>


                <th>订购数量</th>
                <th>成功数量</th>



                
            </tr>
        </thead>
        <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.today}</td>
                    <td>
                        <switch name="vo.product_code">
                            <case value="d1000">挖哇音乐 10元包 d1000</case>
                            <case value="d1001">挖哇社交 15元包 d1001</case>
                            <case value="d1002">挖哇超级 20元包 d1002</case>
                            <case value="d1003">余音普通 5元包  d1003</case>
                            <case value="d1004">余音高级 10元包 d1004</case>
                            <case value="d1005">余音VIP 15元包 d1005</case>
                            <default />default
                        </switch>
                    </td>
                    <td>{$vo.channel}</td>
                    <td onclick="trClick('{$vo.today}','{$vo.product_code}','1')">{$vo.count}</td>
                    <td onclick="trClick('{$vo.today}','{$vo.product_code}','2')">{$vo.success_count}</td>




                </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</body>

</html>
